package com.example.demo.controller;

import com.example.demo.entity.Order;
import com.example.demo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by pengwan on 2017/7/31.
 */
@RestController
public class OrderController {
    @Autowired
    private OrderService orderService;
    @RequestMapping(value = "/test")
    List<Order> get(){
        return this.orderService.fetchJoinTest();
    }
}
